#!/usr/bin/env python
# $Id$

import os

src_dir = 'src'
root_dir = os.path.dirname(__file__)
if root_dir != '':
    os.chdir(root_dir)

os.chdir(src_dir)
# compile i18n messages
try:
    from django.core import management
    management.call_command('compilemessages')
except ImportError:
    pass
finally:
    os.chdir('..')

from setuptools import setup

setup(name = 'grdlog',
      version = '0.3.1',
      description = "A tools for aggregating log entries in SQL database",
      author = "Dmitri Bogomolov",
      author_email = '4glitch@gmail.com',
      url='http://code.google.com/p/grdlog/',
      
      packages = ['grdlog',
                  'grdlog.templatetags',
                  'grdlog.sqlpipe'],
      package_dir = {'grdlog': src_dir},

      package_data = {
          '': ["templates/*/*.html",
               "static/css/*.css",
               "locale/*/LC_MESSAGES/*.mo"]
          },
      data_files = [('/usr/libexec', ['src/sqlpipe/sqlpipe.tac'])],
      install_requires = ['distribute',
                          'twisted'],
      
      classifiers = ['Development Status :: 3 - Alpha',
                     'Intended Audience :: System Administrators',
                     'Programming Language :: Python',
                     'Framework :: Twisted',
                     'Topic :: System :: Networking :: Monitoring'],
      )
